/*
 * @Author: 1243sd 782012816@qq.com
 * @Date: 2024-03-13 20:48:19
 * @LastEditors: 1243sd 782012816@qq.com
 * @LastEditTime: 2024-06-26 21:29:08
 * @FilePath: \frontend-ykt-admin\src\api\requestApi\login.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import _axios from '../axios';

const login = {
	 // 用户修改密码
	editPwd(data) {
		return _axios({
			method: 'put',
			url: 'api/auth/pass_change',
			data
		})
	},
	// 上传图片
	upload_pic(data) {
		return _axios({
			method: 'post',
			url: `api/file/upload`,
			data
		})
	},
	// 上传图片
	getTenantInfoByDomain(data) {
		return _axios({
			method: 'post',
			url: `api/tenant_info/id_by_admin_host`,
			data
		})
	}
};
export default  login;